package types

// page
const (
	DefaultPageNum  = 1
	DefaultPageSize = 5
)

// app platform status
const (
	StatusUnauthorized = "unauthorized"
	StatusAuthorized   = "authorized"
	StatusAuditing     = "auditing"
	StatusReject       = "reject"
	StatusReleased     = "released"
)

// app template field
const (
	Draft   = "Draft"
	Release = "Release"
)

// Platforms
const (
	_ = iota
	Wechat
	Alipay
	ByteDance
)

// 任务状态
const (
	ScheduleTaskInit = iota
	ScheduleTaskRunning
	ScheduleTaskFailed
	ScheduleTaskDone
)

// 任务名称
const (
	TaskCommitCode        = "commit_code"
	TaskCommitAudit       = "commit_audit"
	TaskUpdateAuditStatus = "update_audit_status"
	TaskRelease           = "release"
	TaskSyncQRCode        = "sync_qr_code"
)

// 平台小程序阶段
const (
	StageInitialized    = "initialized"
	StageCommitted      = "committed"
	StageAuditing       = "auditing"        // 审核中
	StageWaitRelease    = "wait_release"    // 审核成功
	StageAuditReject    = "audit_reject"    // 审核驳回
	StageAuditWithdrawn = "audit_withdrawn" // 主动撤回
	StageReleased       = "released"        // 已发布
)

// BytedanceAuthApp 状态
const (
	BytedanceAuthorized       = "authorized"
	BytedanceAuthUnauthorized = "unauthorized"
)

// AlipaySubApp 状态
const (
	AlipayAuthorized   = "authorized"
	AlipayUnauthorized = "unauthorized"
)

// WechatSubApp 状态
const (
	WechatAuthorized   = "authorized"
	WechatUnauthorized = "unauthorized"
)

// NSQ status
const (
	NSQInit    = 0 // 消息初始化
	NSQSucceed = 1 // 消息发送成功
	NSQMarked  = 2 // 消息标记成功
)
